package com.thoughtworks.bytecode2class.attribute;

import com.thoughtworks.bytecode2class.ClassReader;

import java.util.List;

public class UnknownAttribute extends Attribute {
    private List<Byte> info;

    public UnknownAttribute(ClassReader classReader, String name) {
        super(classReader, name);
    }

    @Override
    protected void parseAttributeContent() {
        this.info = classReader.forwardBytes(length);
    }

    public List<Byte> getInfo() {
        return info;
    }

    public String getName() {
        return "Unknown Attribute: " + super.getName();
    }

}
